all: item.ridx test.ridx train.ridx user_action.ridx user_key_word.ridx user_profile.ridx user_sns.ridx rec_log_train.ridx rec_log_test.ridx

#relabel
rec_log_train_newlabel.txt rec_log_test_newlabel.txt: rec_log_train.txt rec_log_test.txt
	pypy python/change_label.py

# for final result
train.ridx: rec_log_train.ridx 
	ln -s rec_log_train.ridx train.ridx
test.ridx: rec_log_test.ridx
	ln -s rec_log_test.ridx test.ridx

#reindex
new_index.txt item.ridx user_action.ridx user_key_word.ridx user_profile.ridx user_sns.ridx rec_log_train.ridx rec_log_test.ridx: item.txt user_action.txt user_key_word.txt user_profile.txt user_sns.txt rec_log_train_newlabel.txt rec_log_test_newlabel.txt
	pypy python/reindexing_data.py evalset

